package ed.com;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class mytest {
    @Test
    public  void text1()
    {
        ApplicationContext ac=new ClassPathXmlApplicationContext("application.xml");
        demo d=(demo) ac.getBean("demo");
        System.out.println(d);
        ((ClassPathXmlApplicationContext)ac).close();
    }
}
